// 显示容器
.main-wrap {
    //width: 100%;
    flex: 1;
    margin: 6px;
    padding: 20px 20px 0 20px;
    background-color: #fff;
    min-height: 83vh;
    display: flex;
    flex-direction: column;
    position: relative;
    //overflow: hidden;
    transition: all .2s ease-in-out;
}

// 分块
.item-wrap {
    margin: 6px 6px 0;
    padding: 20px;
    background-color: #fff;
}

// 弹出框
.el-popover {
    width: auto !important;
    padding: 0;
}

.operation-list {
    padding: 10px 0;

    a {
        display: block;
        cursor: pointer;
        text-align: center;
        line-height: 30px;
        min-width: 100px;
        list-style: none;

        &:hover {
            color: #606266;
            background-color: #eeeeee;
        }
    }
}

// 表单
// 变单一行
.input-wrap {
    width: 100%;
    display: flex;

    .el-form-item {
        flex: 0 0 30%;
        display: flex;
        align-items: center;
        justify-content: flex-start;

        .el-form-item__content {
            flex: 1;

            .el-cascader {
                width: 100%;
            }
        }
    }
}

.el-form-item {
    margin-right: 26px !important;
    margin-bottom: 18px;
}

.el-form-item__label-wrap {
    margin-left: 0 !important;
}

.not-select {
    -moz-user-select: none; /*火狐*/
    -webkit-user-select: none; /*webkit浏览器*/
    -ms-user-select: none; /*IE10*/
    -khtml-user-select: none; /*早期浏览器*/
    user-select: none;
}

.search-form {
    position: relative;
    cursor: pointer;
}

// 展示更多搜索条件
.show-more-search {
    width: 30px;
    position: absolute;
    right: -17px;
    top: 6px;

    p {
        font-size: 14px;
        color: #1890ff;
    }
}

// 表单手动添加 *
.required-label .el-form-item__label {
    position: relative;
}

.required-label .el-form-item__label::after {
    content: "*";
    position: absolute;
    top: 0;
    left: -10px;
    color: #f56c6c;
}

/deep/ ::-webkit-input-placeholder {
    font-size: 18px;
    color: #a0a0a0;
    font-family: sans-serif !important;
}

/deep/ :-moz-placeholder {
    font-size: 18px;
    color: #a0a0a0;
    font-family: sans-serif !important;
}

/deep/ ::-moz-placeholder {
    font-size: 18px;
    color: #a0a0a0;
    font-family: sans-serif !important;
}

/deep/ :-ms-input-placeholder {
    font-size: 18px;
    color: #a0a0a0;
    font-family: sans-serif !important;
}

// 搜索按钮
.button-groups {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .ant-btn:not(:last-child) {
        margin-right: 8px;
    }
}

.search-btn {
    padding: 0 10px;
    border-radius: 2px;
}

// 分页
.el-pagination {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    button {
        background-color: #fff !important;
    }

    .el-pagination__sizes {
        display: none !important;
    }

    .el-pager {
        // 页码样式
        .number {
            width: 40px;
            height: 32px;
            margin: 0 !important;
            border: 1px solid rgba(0, 0, 0, 0.15);
            border-radius: 0 !important;
            border-left: 0 !important;
            // 激活页码样式
            &.active {
                border: 1px solid #1890ff;
            }
        }

        li:not(.active) {
            background-color: #fff !important;
        }

        .el-icon-more,
        .el-icon-d-arrow-right,
        .el-icon-d-arrow-left {
            border: 1px solid rgba(0, 0, 0, 0.15);
            border-radius: 0 !important;
            border-left: 0 !important;
            margin: 0;
            padding: 0;
            height: 32px;
        }
    }

    .btn-prev, .btn-next {
        height: 32px;
        margin: 0 !important;
        padding-left: 13px !important;
        padding-right: 13px !important;
        border: 1px solid rgba(0, 0, 0, 0.15);

        span {
            //color:rgba(0,0,0,0.65);

        }
    }

    .btn-prev {
        border-radius: 4px 0 0 4px !important;
    }

    .btn-next {
        border-radius: 0 4px 4px 0 !important;
        border-left: 0;
    }
}

.is-in-pagination {
    .el-input__inner {
        width: 40px;
    }
}

// 表头样式
.el-table__header-wrapper th {
    padding: 11px 0 !important;
}

.el-table__header-wrapper .is-leaf {
    background-color: #fafafa;
    border-bottom: 1px solid #e8e8e8 !important;
}

.el-table__header-wrapper .cell {
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
}

.el-table {
    color: #142333;
    font-weight: 500;
}

.el-table__body-wrapper {
    /*滚动条整体样式*/
    &::-webkit-scrollbar{
        width: 3px;/*竖向滚动条的宽度*/
        height: 10px;/*横向滚动条的高度*/
    }
    &::-webkit-scrollbar-thumb{/*滚动条里面的小方块*/
        background: #e7e7e7;
        border-radius: 5px;
    }
    &::-webkit-scrollbar-track{/*滚动条轨道的样式*/
        background: transparent;
        border-radius: 5px;
    }
}

// 表格样式
.el-table__row {
    td {
        //padding: 8px 0!important;
        border-bottom: 1px solid #e8e8e8;
        padding: 0 !important;

        .cell {
            line-height: 40px;
        }
    }
}

.not-show {
    .cell {
        visibility: hidden !important;
    }
}


.el-cascader-menu__wrap {
    //overflow: visible;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    max-height: 300px;

    &::-webkit-scrollbar {
        /*隐藏滚轮*/
        display: none;
    }

    .el-radio {
        display: none;
    }
}

.el-table {
    flex: 1;
    display: flex;
    flex-direction: column;

    .el-table__body-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        //align-items: center;

        .el-table__empty-block {
            flex: 1;
        }
    }
}

// 确认弹窗
.common-modal {
    .ant-modal-header {
        padding: 14px 31px;

        .ant-modal-title {
            font-weight: bold;
        }
    }

    .ant-modal-body {
        padding: 48px 33px;
    }

    .ant-modal-footer {
        padding-right: 28px;
    }

    .el-form-item__label {
        font-weight: 500;
    }

    .el-form-item__content {
        width: 420px;

        .el-date-editor.el-date-editor--datetime {
            width: 420px;
        }
    }

    .el-form-item {
        margin-bottom: 26px;
        margin-right: 0 !important;
    }

    .el-input__inner {
        width: 420px;
    }


    .el-textarea__inner {
        width: 420px !important;
        min-height: 108px !important;
    }
}

// 接收人弹窗
.people-modal {
    .el-form-item {
        margin-right: 10px !important;

        .el-input__inner {
            width: 154px;
        }
    }
}

// 上传
.el-upload__tip {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

// 时间选择输入框长度
.el-picker-panel.el-date-range-picker.el-popper.has-time {
    .el-input__inner {
        width: 100%;
    }
}

.el-picker-panel.el-date-picker.el-popper.has-time {
    .el-input__inner {
        width: 100%;
    }
}

.scroll-wrap {
    &::-webkit-scrollbar {
        display: none;
    }

    &::-webkit-scrollbar-track-piece {
        background-color: transparent;
        //-webkit-border-radius: 6px;
    }

    &::-webkit-scrollbar-thumb:vertical {
        height: 1px;
        background-color: rgba(144, 147, 153, .3);
        //-webkit-border-radius: 6px;
    }

    &::-webkit-scrollbar-thumb:horizontal {
        width: 1px;
        background-color: rgba(144, 147, 153, .3);
        //-webkit-border-radius: 6px;
    }
}

// 自定义错误提示
.err-tip {
    position: absolute;
    padding-left: 70px;
    color: #f56c6c !important;
}

.el-table td, .el-table th {
    padding: 9px 0;
}

.el-icon.more.btn-quicknext.el-icon-more,
.el-icon.more.btn-quicknext.el-icon-d-arrow-right,
.el-icon.more.btn-quickprev.el-icon-more,
.el-icon.more.btn-quickprev.el-icon-d-arrow-left {
    margin: 0;
}

.required-mark {
    margin-right: 5px;
    color: #f56c6c;
}

.animate-search {
    opacity: 0;
    transform: translateY(-10px);
    position: absolute;
}

.show-animate {
    animation: show-animate-transition .2s forwards;
}

.hide-animate {
    animation: hide-animate-transition .2s forwards;
}

@keyframes show-animate-transition {
    from {
        opacity: 0;
        position: absolute;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        position: relative;
        transform: translateY(0px);
    }
}

@keyframes hide-animate-transition {
    from {
        opacity: 1;
        position: relative;
        transform: translateY(0px);
    }
    to {
        opacity: 0;
        position: absolute;
        transform: translateY(-10px);
    }
}
